<!DOCTYPE html>
<html>
	<body>
		<h4 class="page-bar">
			首页<span class="link">&gt;</span><a href="index.html">用户列表</a>
		</h4>
		<h3 class="page-title">用户列表</h3>
		<div class="portlet" style="width: 400px;">
			<div class="portlet-title">
				<div class="actions">
					<button class="btn btn-sm" onclick="add()">+ add</button>
				</div>
			</div>
			<div class="portlet-body">
				<table class="table" width="400">
					<tr>
						<th>姓名</th>
						<th>生日</th>
						<th>管理</th>
					</tr>
					<tr>
						<td>张山</td>
						<td>1996-02-25</td>
						<td>
							<button class="btn succeed">修改</button>
							<button class="btn danger">删除</button>
						</td>
					</tr>
					<tr>
						<td>张山</td>
						<td>1996-02-25</td>
						<td>
							<button class="btn succeed">修改</button>
							<button class="btn danger">删除</button>
						</td>
					</tr>
				</table>
			</div>
			<form id="_form" name="_form" action="#" method="get" onclick='formsubmit()'>
				<input type="text" name="" value="" />
				<input type="text" name="" value="" />
				<input type="text" name="" value="" />
				<button type="button">提交</button>
			</form>
		</div>
		<script>
			function formsubmit(){
				var form = document.getElementById('_form');
				console.log('进入了');
				alert(form.elements.length);
				form.submit();
			}
		</script>
	</body>
</html>
